import Http from "../http";

export async function backTestPageApi(params:any) {
    const { data } = await Http.get('strategy/backtest/list', params)
    return data
}

export function profitSummaryApi(params:any) {
    return Http.get('strategy/backtest/profit', params)
}

export async function backTestProcessApi(params:any) {
    const { data } = await Http.get('strategy/backtest/process', params)
    return data
}


export function transactionDetailApi(params:any) {
    return Http.get('strategy/backtest/transactions', params)
}

export function positionApi(params:any) {
    return Http.get('strategy/backtest/position', params)
}

export function strategyProfitApi(params:any) {
    return Http.get('strategy/backtest/strategy_returns', params)
}

export function benchmarkProfitApi(params:any) {
    return Http.get('strategy/backtest/benchmark_returns', params)
}